import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Login from "../views/Login";
import List from "../views/List";
import AddGoods from "../views/AddGoods";
import OrderList from "../views/OrderList";
import PayReturn from "../views/PayReturn";
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: '登录',
    component: Login
  },
  {
    path: '/list',
    name: '列表',
    component: List
  },
  {
    path: '/addGoods',
    name: '购买商品',
    component: AddGoods
  },
  {
    path: '/orderList',
    name: '订单',
    component: OrderList
  },
  {
    path: '/payReturn',
    name: '返回',
    component: PayReturn
  },
]

const router = new VueRouter({
  routes
})

export default router
